<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <title>Bootstrap弹出框案例</title>
</head>

<body>

    <div class="container">
        <button type="button" id="myPopover" class="btn btn-default js-popover" data-toggle="popover" data-placement="bottom" title="标题" data-content="这里是极客" data-animation="false">弹出框</button>
    </div>
    <script src="../js/jquery-1.12.4.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <script>
        $(".js-popover").popover()
        $(".js-popover").popover('show')
        $("#myPopover").on('hidden.bs.popover', function(e) {
            alert('popover')
        })
    </script>
</body>

</html>